package com.wn.ticket.security.backstage;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Arrays;
import java.util.Collection;

/**
 * @author wuqingting
 * @date 2022/8/18
 */
@Getter
@Setter
public class AdminUser extends User {
    private int id;

    public AdminUser() {
        super(null,null,Arrays.asList(new SimpleGrantedAuthority("")));
    }

    public AdminUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public AdminUser(int id, String username, String password,Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.id=id;
    }



}
